from sqlalchemy.ext.declarative import declarative_base, Table, Column
from sqlalchemy.types import Integer
from sqlalchemy.schema import ForeignKey

__all__ = ["Base"]

Base = declarative_base()

train_stops = Table('train_stops', Base.metadata,
                    Column('train_id', Integer, ForeignKey('trains.id'), nullable=False),
                    Column('stop_id', Integer, ForeignKey('stops.id'), nullable=False)
                   )